<?php
session_start(); 
if(!isset($_SESSION['userName'])){
header( 'location:../../index.php' ); 
}
	include("../../conf/connect.php");
	$user_id = $_SESSION['user_id'];
	$hhid= $_GET['hhid'];
	$bid= $_GET['bid'];
	
	if ($bid==3){
		$_SESSION['usrHHid']=$hhid;
		header( 'location: rel_detail.php' );
	}
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<title></title>
	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
	<link rel="stylesheet" type="text/css" href="../../style.css" media="screen" />
	<link rel="shortcut icon" href="../images/favicon.ico" />
</head>
<body class="iub_back">
	<form method="post" action="update_operation.php?qus=upd2">
	<table align="center" class="table_border">
			<tr>
					<td class="header"><b class="htext">IUB Survey :: </b><br /><hr /> </td>
			</tr>
			<tr>
					<td> Field : </td>
			</tr>
			<tr>
					<td><input type="hidden" name="bid" value="<?php echo $bid;?> " />
						<select name="qusNo">						
								<option value="q47">Motorbykes/Scuter</option>
								<option value="q48">Car/Zeep</option>
								<option value="q49">Other/Tractor</option>
								<option value="q50">Bicycle</option>
								<option value="q51">Bullock Curt</option>
								<option value="q52">Computer</option>
								<option value="q53">Washing Machine</option>
								<option value="q54">Kitchen Mixer</option>
								<option value="q55"> Refrigerator</option>
								<option value="q56">Television </option>
								<option value="q57">Radio/Casstte</option>
								<option value="q58">Telephone </option>
								<option value="q59">Mobile Phone</option>
								<option value="q60">Fan </option>
								<option value="q61">Sewing Machine</option>
								<option value="q62">Watch </option>
								<option value="q63">Dining Table</option>
								<option value="q64">Household </option>
								<option value="q65">Ownland in the village</option>
								<option value="q66">Ownland in the town</option>
								<option value="q67">Bankbond </option>
								<option value="q68">Gold Jewelery</option>
								<option value="q69">Furniture </option>
																	
						</select>
					</td>
			</tr>
			<tr>
					<td align="right" valign="bottom"><input type="submit" value="Update" class="input-box" /> &nbsp;&nbsp;<a href="../index2.php" class="input-box"> Home &nbsp;&nbsp; </a></td>
			</tr>
			<tr>
					<td> <i>Answer(s)</i> : <input type="hidden" name="hhhid" value="<?php echo $hhid;?>" /></td>
			</tr>
			 		
			<?php
				$sql ="SELECT * FROM household_asset where hid='$hhid'";
				$result=mysql_query( $sql);
				while($row = mysql_fetch_array($result)){
				?>	
			<tr>
					<td>Motorbykes/Scuter&nbsp;:&nbsp; <?php echo $row['ha_01'];?></td>
			</tr>
			<tr>
					<td>Car/Zeep&nbsp;:&nbsp; <?php echo $row['ha_02'];?></td>
			</tr>
			<tr>
					<td>Other/Tractor&nbsp;:&nbsp; <?php echo $row['ha_03'];?></td>
			</tr>
			<tr>
					<td>Bicycle&nbsp;:&nbsp; <?php echo $row['ha_04'];?></td>
			</tr>
			<tr>
					<td>Bullock Curt&nbsp;:&nbsp; <?php echo $row['ha_05'];?></td>
			</tr>
			<tr>
					<td>Computer&nbsp;:&nbsp; <?php echo $row['ha_06'];?></td>
			</tr>
			<tr>
					<td>Washing Machine&nbsp;:&nbsp; <?php echo $row['ha_07'];?></td>
			</tr>
			<tr>
					<td>Kitchen Mixer&nbsp;:&nbsp; <?php echo $row['ha_08'];?></td>
			</tr>
			<tr>
					<td>Refrigerator&nbsp;:&nbsp; <?php echo $row['ha_09'];?></td>
			</tr>
			<tr>
					<td>Television&nbsp;:&nbsp; <?php echo $row['ha_10'];?></td>
			</tr>
			<tr>
					<td>Radio/Casstte&nbsp;:&nbsp; <?php echo $row['ha_11'];?></td>
			</tr>
			<tr>
					<td>Telephone&nbsp;:&nbsp; <?php echo $row['ha_12'];?></td>
			</tr>
			<tr>
					<td>Mobile Phone&nbsp;:&nbsp; <?php echo $row['ha_13'];?></td>
			</tr>
			<tr>
					<td>Fan&nbsp;:&nbsp; <?php echo $row['ha_14'];?></td>
			</tr>
			<tr>
					<td>Sewing Machine&nbsp;:&nbsp; <?php echo $row['ha_15'];?></td>
			</tr>
			<tr>
					<td>Watch&nbsp;:&nbsp; <?php echo $row['ha_16'];?></td>
			</tr>
			<tr>
					<td>Dining Table&nbsp;:&nbsp; <?php echo $row['ha_17'];?></td>
			</tr>
			<tr>
					<td>House(s)&nbsp;:&nbsp; <?php echo $row['ha_18'];?></td>
			</tr>
			<tr>
					<td>Ownland in the village&nbsp;:&nbsp; <?php echo $row['ha_19'];?></td>
			</tr>
			<tr>
					<td>Ownland in the town&nbsp;:&nbsp; <?php echo $row['ha_20'];?></td>
			</tr>
			<tr>
					<td>Bankbond&nbsp;:&nbsp; <?php echo $row['ha_21'];?></td>
			</tr>
			<tr>
					<td>Gold Jewelery&nbsp;:&nbsp; <?php echo $row['ha_22'];?></td>
			</tr>
			<tr>
					<td>Furniture&nbsp;:&nbsp; <?php echo $row['ha_23'];?></td>
			</tr>
			
			<?php 		
								
				}			
			?>
						
		</table>
		</form>
</body>
</html>